package gvjclient.ui;
/*
Copyright 2010 Arpit Sud
This file is part of gv-jclient. (http://code.google.com/p/gv-jclient/)
gv-jclient is an Unofficial Java client for Google Voice.

gv-jclient is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

gv-jclient is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with gv-jclient.  If not, see <http://www.gnu.org/licenses/>.
*/

import java.io.File;

import gvjclient.ui.GVJclientUI.LogoutAllAction;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;

public class RightPanel extends JPanel {

	public RightPanel()
	{
		super();
        LogoutAllAction logoutAllAction; 
		JButton logoutAllButton;
		ImageIcon logoutIcon;
		String path = File.separator + "images" + File.separator + "logout.png";
		java.net.URL url = this.getClass().getResource(path);
		logoutIcon = new ImageIcon(url);
		
		System.out.println(url);
		logoutAllAction = GVJclientUI.get_instance().new LogoutAllAction();
		logoutAllButton = new JButton(logoutAllAction);
		logoutAllButton.setIcon(logoutIcon);
		this.add(logoutAllButton);

	}
}
